import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const DStoken='save-Token'
const TokenKeys='si-Token'
const UserIdKey = 'zjxj-userId'
const UserRoleGroup = 'zjxj-RoleGroup'
const UserDic = 'zjxj-UserDic'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}
export function getRoleGroup() {
  return Cookies.get(UserRoleGroup)
}

export function setRoleGroup(token) {
  return Cookies.set(UserRoleGroup, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getDstoken(){
  return Cookies.get(DStoken)
}


export function setDstoken(token) {
  return Cookies.set(DStoken, token)
}

export function removeDstoken() {
  return Cookies.remove(DStoken)
}
export function getuser() {
  return Cookies.get(TokenKeys)
}

export function setuser(token) {
  return Cookies.set(TokenKeys, token)
}
export function removeuser(token) {
  return Cookies.remove(TokenKeys)
}

export function setUserId(id) {
  return Cookies.set(UserIdKey,id)
}

export function getUserId() {
  return Cookies.get(UserIdKey)
}
export function setUserDic(id){
  return Cookies.set(UserDic,id)
}
export function getUserDic(){
  return Cookies.get(UserDic)
}